Optimal. Leaf size=475 \[ -\frac {(a e-c d x) (d+e x)^{7/2}}{3 a c \left (a+c x^2\right )^{3/2}}-\frac {(d+e x)^{3/2} \left (a e \left (c d^2+7 a e^2\right )-2 c d \left (2 c d^2+5 a e^2\right ) x\right )}{6 a^2 c^2 \sqrt {a+c x^2}}-\frac {2 d e \left (c d^2+3 a e^2\right ) \sqrt {d+e x} \sqrt {a+c x^2}}{3 a^2 c^2}+\frac {\left (4 c^2 d^4+15 a c d^2 e^2-21 a^2 e^4\right ) \sqrt {d+e x} \sqrt {1+\frac {c x^2}{a}} E\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a e}{\sqrt {-a} \sqrt {c} d-a e}\right )}{6 (-a)^{3/2} c^{5/2} \sqrt {\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}} \sqrt {a+c x^2}}-\frac {2 d \left (c d^2+a e^2\right ) \left (c d^2+3 a e^2\right ) \sqrt {\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}} \sqrt {1+\frac {c x^2}{a}} F\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a e}{\sqrt {-a} \sqrt {c} d-a e}\right )}{3 (-a)^{3/2} c^{5/2} \sqrt {d+e x} \sqrt {a+c x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.34, antiderivative size = 475, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {753, 833, 847,
858, 733, 435, 430} \begin {gather*} \frac {\sqrt {\frac {c x^2}{a}+1} \sqrt {d+e x} \left (-21 a^2 e^4+15 a c d^2 e^2+4 c^2 d^4\right ) E\left (\text {ArcSin}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a e}{\sqrt {-a} \sqrt {c} d-a e}\right )}{6 (-a)^{3/2} c^{5/2} \sqrt {a+c x^2} \sqrt {\frac {\sqrt {c} (d+e x)}{\sqrt {-a} e+\sqrt {c} d}}}-\frac {(d+e x)^{3/2} \left (a e \left (7 a e^2+c d^2\right )-2 c d x \left (5 a e^2+2 c d^2\right )\right )}{6 a^2 c^2 \sqrt {a+c x^2}}-\frac {2 d e \sqrt {a+c x^2} \sqrt {d+e x} \left (3 a e^2+c d^2\right )}{3 a^2 c^2}-\frac {2 d \sqrt {\frac {c x^2}{a}+1} \left (a e^2+c d^2\right ) \left (3 a e^2+c d^2\right ) \sqrt {\frac {\sqrt {c} (d+e x)}{\sqrt {-a} e+\sqrt {c} d}} F\left (\text {ArcSin}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a e}{\sqrt {-a} \sqrt {c} d-a e}\right )}{3 (-a)^{3/2} c^{5/2} \sqrt {a+c x^2} \sqrt {d+e x}}-\frac {(d+e x)^{7/2} (a e-c d x)}{3 a c \left (a+c x^2\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 430
Rule 435
Rule 733
Rule 753
Rule 833
Rule 847
Rule 858
Rubi steps
\begin {align*} \int \frac {(d+e x)^{9/2}}{\left (a+c x^2\right )^{5/2}} \, dx &=-\frac {(a e-c d x) (d+e x)^{7/2}}{3 a c \left (a+c x^2\right )^{3/2}}+\frac {\int \frac {(d+e x)^{5/2} \left (\frac {1}{2} \left (4 c d^2+7 a e^2\right )-\frac {3}{2} c d e x\right )}{\left (a+c x^2\right )^{3/2}} \, dx}{3 a c}\\ &=-\frac {(a e-c d x) (d+e x)^{7/2}}{3 a c \left (a+c x^2\right )^{3/2}}-\frac {(d+e x)^{3/2} \left (a e \left (c d^2+7 a e^2\right )-2 c d \left (2 c d^2+5 a e^2\right ) x\right )}{6 a^2 c^2 \sqrt {a+c x^2}}+\frac {\int \frac {\sqrt {d+e x} \left (-\frac {3}{4} a e^2 \left (c d^2-7 a e^2\right )-3 c d e \left (c d^2+3 a e^2\right ) x\right )}{\sqrt {a+c x^2}} \, dx}{3 a^2 c^2}\\ &=-\frac {(a e-c d x) (d+e x)^{7/2}}{3 a c \left (a+c x^2\right )^{3/2}}-\frac {(d+e x)^{3/2} \left (a e \left (c d^2+7 a e^2\right )-2 c d \left (2 c d^2+5 a e^2\right ) x\right )}{6 a^2 c^2 \sqrt {a+c x^2}}-\frac {2 d e \left (c d^2+3 a e^2\right ) \sqrt {d+e x} \sqrt {a+c x^2}}{3 a^2 c^2}+\frac {2 \int \frac {\frac {3}{8} a c d e^2 \left (c d^2+33 a e^2\right )-\frac {3}{8} c e \left (4 c^2 d^4+15 a c d^2 e^2-21 a^2 e^4\right ) x}{\sqrt {d+e x} \sqrt {a+c x^2}} \, dx}{9 a^2 c^3}\\ &=-\frac {(a e-c d x) (d+e x)^{7/2}}{3 a c \left (a+c x^2\right )^{3/2}}-\frac {(d+e x)^{3/2} \left (a e \left (c d^2+7 a e^2\right )-2 c d \left (2 c d^2+5 a e^2\right ) x\right )}{6 a^2 c^2 \sqrt {a+c x^2}}-\frac {2 d e \left (c d^2+3 a e^2\right ) \sqrt {d+e x} \sqrt {a+c x^2}}{3 a^2 c^2}+\frac {\left (d \left (c d^2+a e^2\right ) \left (c d^2+3 a e^2\right )\right ) \int \frac {1}{\sqrt {d+e x} \sqrt {a+c x^2}} \, dx}{3 a^2 c^2}-\frac {\left (4 c^2 d^4+15 a c d^2 e^2-21 a^2 e^4\right ) \int \frac {\sqrt {d+e x}}{\sqrt {a+c x^2}} \, dx}{12 a^2 c^2}\\ &=-\frac {(a e-c d x) (d+e x)^{7/2}}{3 a c \left (a+c x^2\right )^{3/2}}-\frac {(d+e x)^{3/2} \left (a e \left (c d^2+7 a e^2\right )-2 c d \left (2 c d^2+5 a e^2\right ) x\right )}{6 a^2 c^2 \sqrt {a+c x^2}}-\frac {2 d e \left (c d^2+3 a e^2\right ) \sqrt {d+e x} \sqrt {a+c x^2}}{3 a^2 c^2}-\frac {\left (\left (4 c^2 d^4+15 a c d^2 e^2-21 a^2 e^4\right ) \sqrt {d+e x} \sqrt {1+\frac {c x^2}{a}}\right ) \text {Subst}\left (\int \frac {\sqrt {1+\frac {2 a \sqrt {c} e x^2}{\sqrt {-a} \left (c d-\frac {a \sqrt {c} e}{\sqrt {-a}}\right )}}}{\sqrt {1-x^2}} \, dx,x,\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )}{6 \sqrt {-a} a c^{5/2} \sqrt {\frac {c (d+e x)}{c d-\frac {a \sqrt {c} e}{\sqrt {-a}}}} \sqrt {a+c x^2}}+\frac {\left (2 d \left (c d^2+a e^2\right ) \left (c d^2+3 a e^2\right ) \sqrt {\frac {c (d+e x)}{c d-\frac {a \sqrt {c} e}{\sqrt {-a}}}} \sqrt {1+\frac {c x^2}{a}}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \sqrt {1+\frac {2 a \sqrt {c} e x^2}{\sqrt {-a} \left (c d-\frac {a \sqrt {c} e}{\sqrt {-a}}\right )}}} \, dx,x,\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )}{3 \sqrt {-a} a c^{5/2} \sqrt {d+e x} \sqrt {a+c x^2}}\\ &=-\frac {(a e-c d x) (d+e x)^{7/2}}{3 a c \left (a+c x^2\right )^{3/2}}-\frac {(d+e x)^{3/2} \left (a e \left (c d^2+7 a e^2\right )-2 c d \left (2 c d^2+5 a e^2\right ) x\right )}{6 a^2 c^2 \sqrt {a+c x^2}}-\frac {2 d e \left (c d^2+3 a e^2\right ) \sqrt {d+e x} \sqrt {a+c x^2}}{3 a^2 c^2}+\frac {\left (4 c^2 d^4+15 a c d^2 e^2-21 a^2 e^4\right ) \sqrt {d+e x} \sqrt {1+\frac {c x^2}{a}} E\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a e}{\sqrt {-a} \sqrt {c} d-a e}\right )}{6 (-a)^{3/2} c^{5/2} \sqrt {\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}} \sqrt {a+c x^2}}-\frac {2 d \left (c d^2+a e^2\right ) \left (c d^2+3 a e^2\right ) \sqrt {\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}} \sqrt {1+\frac {c x^2}{a}} F\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a e}{\sqrt {-a} \sqrt {c} d-a e}\right )}{3 (-a)^{3/2} c^{5/2} \sqrt {d+e x} \sqrt {a+c x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 23.05, size = 700, normalized size = 1.47 \begin {gather*} \frac {\sqrt {d+e x} \left (\frac {8 c^3 d^4 x^3-2 a^3 e^3 (19 d+7 e x)+2 a c^2 d^2 x \left (6 d^2+d e x+15 e^2 x^2\right )-2 a^2 c e \left (7 d^3-3 d^2 e x+27 d e^2 x^2+9 e^3 x^3\right )}{a^2 c^2 \left (a+c x^2\right )}+\frac {2 \left (-e^2 \sqrt {-d-\frac {i \sqrt {a} e}{\sqrt {c}}} \left (4 c^2 d^4+15 a c d^2 e^2-21 a^2 e^4\right ) \left (a+c x^2\right )+\sqrt {c} \left (4 i c^{5/2} d^5-4 \sqrt {a} c^2 d^4 e+15 i a c^{3/2} d^3 e^2-15 a^{3/2} c d^2 e^3-21 i a^2 \sqrt {c} d e^4+21 a^{5/2} e^5\right ) \sqrt {\frac {e \left (\frac {i \sqrt {a}}{\sqrt {c}}+x\right )}{d+e x}} \sqrt {-\frac {\frac {i \sqrt {a} e}{\sqrt {c}}-e x}{d+e x}} (d+e x)^{3/2} E\left (i \sinh ^{-1}\left (\frac {\sqrt {-d-\frac {i \sqrt {a} e}{\sqrt {c}}}}{\sqrt {d+e x}}\right )|\frac {\sqrt {c} d-i \sqrt {a} e}{\sqrt {c} d+i \sqrt {a} e}\right )+\sqrt {a} \sqrt {c} e \left (4 c^2 d^4+i \sqrt {a} c^{3/2} d^3 e+15 a c d^2 e^2+33 i a^{3/2} \sqrt {c} d e^3-21 a^2 e^4\right ) \sqrt {\frac {e \left (\frac {i \sqrt {a}}{\sqrt {c}}+x\right )}{d+e x}} \sqrt {-\frac {\frac {i \sqrt {a} e}{\sqrt {c}}-e x}{d+e x}} (d+e x)^{3/2} F\left (i \sinh ^{-1}\left (\frac {\sqrt {-d-\frac {i \sqrt {a} e}{\sqrt {c}}}}{\sqrt {d+e x}}\right )|\frac {\sqrt {c} d-i \sqrt {a} e}{\sqrt {c} d+i \sqrt {a} e}\right )\right )}{a^2 c^3 e \sqrt {-d-\frac {i \sqrt {a} e}{\sqrt {c}}} (d+e x)}\right )}{12 \sqrt {a+c x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(3303\) vs.
\(2(397)=794\).
time = 0.48, size = 3304, normalized size = 6.96
method | result | size |
elliptic | \(\frac {\sqrt {\left (e x +d \right ) \left (c \,x^{2}+a \right )}\, \left (\frac {\left (\frac {\left (a^{2} e^{4}-6 a c \,d^{2} e^{2}+c^{2} d^{4}\right ) x}{3 c^{4} a}+\frac {4 d e \left (e^{2} a -c \,d^{2}\right )}{3 c^{4}}\right ) \sqrt {c e \,x^{3}+c d \,x^{2}+a e x +a d}}{\left (x^{2}+\frac {a}{c}\right )^{2}}-\frac {2 \left (c e x +c d \right ) \left (\frac {\left (9 a^{2} e^{4}-15 a c \,d^{2} e^{2}-4 c^{2} d^{4}\right ) x}{12 a^{2} c^{3}}+\frac {\left (27 e^{2} a -c \,d^{2}\right ) d e}{12 c^{3} a}\right )}{\sqrt {\left (x^{2}+\frac {a}{c}\right ) \left (c e x +c d \right )}}+\frac {2 \left (\frac {5 d \,e^{4}}{c^{2}}-\frac {2 d \left (9 a^{2} e^{4}-4 a c \,d^{2} e^{2}-c^{2} d^{4}\right )}{3 a^{2} c^{2}}+\frac {e^{2} \left (27 e^{2} a -c \,d^{2}\right ) d}{12 c^{2} a}+\frac {d \left (9 a^{2} e^{4}-15 a c \,d^{2} e^{2}-4 c^{2} d^{4}\right )}{6 c^{2} a^{2}}\right ) \left (\frac {d}{e}-\frac {\sqrt {-a c}}{c}\right ) \sqrt {\frac {x +\frac {d}{e}}{\frac {d}{e}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x -\frac {\sqrt {-a c}}{c}}{-\frac {d}{e}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x +\frac {\sqrt {-a c}}{c}}{-\frac {d}{e}+\frac {\sqrt {-a c}}{c}}}\, \EllipticF \left (\sqrt {\frac {x +\frac {d}{e}}{\frac {d}{e}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {d}{e}+\frac {\sqrt {-a c}}{c}}{-\frac {d}{e}-\frac {\sqrt {-a c}}{c}}}\right )}{\sqrt {c e \,x^{3}+c d \,x^{2}+a e x +a d}}+\frac {2 \left (\frac {e^{5}}{c^{2}}+\frac {\left (9 a^{2} e^{4}-15 a c \,d^{2} e^{2}-4 c^{2} d^{4}\right ) e}{12 a^{2} c^{2}}\right ) \left (\frac {d}{e}-\frac {\sqrt {-a c}}{c}\right ) \sqrt {\frac {x +\frac {d}{e}}{\frac {d}{e}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x -\frac {\sqrt {-a c}}{c}}{-\frac {d}{e}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x +\frac {\sqrt {-a c}}{c}}{-\frac {d}{e}+\frac {\sqrt {-a c}}{c}}}\, \left (\left (-\frac {d}{e}-\frac {\sqrt {-a c}}{c}\right ) \EllipticE \left (\sqrt {\frac {x +\frac {d}{e}}{\frac {d}{e}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {d}{e}+\frac {\sqrt {-a c}}{c}}{-\frac {d}{e}-\frac {\sqrt {-a c}}{c}}}\right )+\frac {\sqrt {-a c}\, \EllipticF \left (\sqrt {\frac {x +\frac {d}{e}}{\frac {d}{e}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {d}{e}+\frac {\sqrt {-a c}}{c}}{-\frac {d}{e}-\frac {\sqrt {-a c}}{c}}}\right )}{c}\right )}{\sqrt {c e \,x^{3}+c d \,x^{2}+a e x +a d}}\right )}{\sqrt {e x +d}\, \sqrt {c \,x^{2}+a}}\) | \(883\) |
default | \(\text {Expression too large to display}\) | \(3304\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.55, size = 539, normalized size = 1.13 \begin {gather*} \frac {{\left (2 \, {\left (2 \, c^{4} d^{5} x^{4} + 4 \, a c^{3} d^{5} x^{2} + 2 \, a^{2} c^{2} d^{5} + 39 \, {\left (a^{2} c^{2} d x^{4} + 2 \, a^{3} c d x^{2} + a^{4} d\right )} e^{4} + 9 \, {\left (a c^{3} d^{3} x^{4} + 2 \, a^{2} c^{2} d^{3} x^{2} + a^{3} c d^{3}\right )} e^{2}\right )} \sqrt {c} e^{\frac {1}{2}} {\rm weierstrassPInverse}\left (\frac {4 \, {\left (c d^{2} - 3 \, a e^{2}\right )} e^{\left (-2\right )}}{3 \, c}, -\frac {8 \, {\left (c d^{3} + 9 \, a d e^{2}\right )} e^{\left (-3\right )}}{27 \, c}, \frac {1}{3} \, {\left (3 \, x e + d\right )} e^{\left (-1\right )}\right ) - 3 \, {\left (21 \, {\left (a^{2} c^{2} x^{4} + 2 \, a^{3} c x^{2} + a^{4}\right )} e^{5} - 15 \, {\left (a c^{3} d^{2} x^{4} + 2 \, a^{2} c^{2} d^{2} x^{2} + a^{3} c d^{2}\right )} e^{3} - 4 \, {\left (c^{4} d^{4} x^{4} + 2 \, a c^{3} d^{4} x^{2} + a^{2} c^{2} d^{4}\right )} e\right )} \sqrt {c} e^{\frac {1}{2}} {\rm weierstrassZeta}\left (\frac {4 \, {\left (c d^{2} - 3 \, a e^{2}\right )} e^{\left (-2\right )}}{3 \, c}, -\frac {8 \, {\left (c d^{3} + 9 \, a d e^{2}\right )} e^{\left (-3\right )}}{27 \, c}, {\rm weierstrassPInverse}\left (\frac {4 \, {\left (c d^{2} - 3 \, a e^{2}\right )} e^{\left (-2\right )}}{3 \, c}, -\frac {8 \, {\left (c d^{3} + 9 \, a d e^{2}\right )} e^{\left (-3\right )}}{27 \, c}, \frac {1}{3} \, {\left (3 \, x e + d\right )} e^{\left (-1\right )}\right )\right ) - 3 \, \sqrt {c x^{2} + a} {\left ({\left (9 \, a^{2} c^{2} x^{3} + 7 \, a^{3} c x\right )} e^{5} + {\left (27 \, a^{2} c^{2} d x^{2} + 19 \, a^{3} c d\right )} e^{4} - 3 \, {\left (5 \, a c^{3} d^{2} x^{3} + a^{2} c^{2} d^{2} x\right )} e^{3} - {\left (a c^{3} d^{3} x^{2} - 7 \, a^{2} c^{2} d^{3}\right )} e^{2} - 2 \, {\left (2 \, c^{4} d^{4} x^{3} + 3 \, a c^{3} d^{4} x\right )} e\right )} \sqrt {x e + d}\right )} e^{\left (-1\right )}}{18 \, {\left (a^{2} c^{5} x^{4} + 2 \, a^{3} c^{4} x^{2} + a^{4} c^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (d+e\,x\right )}^{9/2}}{{\left (c\,x^2+a\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________